﻿<!-- Views/Admin/DeleteOption.cshtml -->
@model WebApplication1.Models.Option

@{
    ViewBag.Title = "删除选项";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container">
    <h2>删除选项</h2>
    <h4>@ViewBag.QuestionText</h4>
    <hr />

    <div class="alert alert-danger">
        <h4>确认删除以下选项？</h4>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">选项信息</h3>
        </div>
        <div class="panel-body">
            <dl class="dl-horizontal">
                <dt>@Html.DisplayNameFor(model => model.OptionLabel)</dt>
                <dd><strong>@Html.DisplayFor(model => model.OptionLabel)</strong></dd>

                <dt>@Html.DisplayNameFor(model => model.OptionText)</dt>
                <dd>@Html.DisplayFor(model => model.OptionText)</dd>
            </dl>
        </div>
    </div>

    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        @Html.HiddenFor(model => model.OptionId)
        @Html.HiddenFor(model => model.QuestionId)

        <div class="form-actions no-color">
            <input type="submit" value="确认删除" class="btn btn-danger" />
            <a href="@Url.Action("Options", "Admin", new { questionId = Model.QuestionId })" class="btn btn-default">取消</a>
        </div>
    }
</div>